projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e301fd
)
palette: use INT_MAX instead of MAXINT
author
Øyvind Kolås
<pippin@gimp.org>
Mon, 26 Mar 2012 14:29:12 +0000
(15:29 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Mon, 26 Mar 2012 14:29:12 +0000
(15:29 +0100)
babl/babl-palette.c
patch
|
blob
|
history
diff --git
a/babl/babl-palette.c
b/babl/babl-palette.c
index 8639ba9244fb193de83f0c63ef372dd0ba5a3a84..893bc6adffaf56782b91d90549fa5777168b38ae 100644
(file)
--- a/
babl/babl-palette.c
+++ b/
babl/babl-palette.c
@@
-90,7
+90,7
@@
babl_palette_lookup (BablPalette *pal, int r, int g, int b, int a)
else
{
int best_idx = 0;
- int best_diff =
MAXINT
;
+ int best_diff =
INT_MAX
;
for (idx = 0; idx < pal->count; idx++)
{